#include<iostream>
#include<gtest/gtest.h>

TEST(test/*总的测试名称*/,great_than/*测试用例名称*/){
    int age=20;
    ASSERT_GT(age,10);
    printf("ok!\n");
}
TEST(test, less_than) {
    int age = 20;
    EXPECT_LT(age, 18);
    printf("OK!\n");
}

int main(int argc, char *argv[])
{
    //初始化单元测试
    testing::InitGoogleTest(&argc, argv);
    RUN_ALL_TESTS();//执行所有单元测试
    return 0;
} 